package com.example.demo.Param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;

/**
 * 添加订单param
 */
@Data
public class OrderInsertParam implements Serializable{

    @ApiModelProperty("客户id")
    @NotEmpty(message = "客户id不能为空")
    private Long customerId;

    @ApiModelProperty("产品名")
    @NotEmpty(message = "产品名不能为空")
    private String productname;

    @ApiModelProperty("产品数量")
    @NotEmpty(message = "产品数量不能为空")
    private Short quantity;

    @ApiModelProperty("spu")
    @NotEmpty(message = "spu不能为空")
    private String spu;

    @ApiModelProperty("sku")
    @NotEmpty(message = "sku不能为空")
    private String sku;

}
